<?php

namespace App\Events;

use App\Models\User;
use Illuminate\Queue\SerializesModels;

class LoginEvent {

    use SerializesModels;

    public $user;

    /**
     * 创建新的事件实例
     *
     * @param User $user
     */
    public function __construct(User $user)
    {
        $this->user = $user;
    }

    public function handle(User $event)
    {
        try{

        } catch (\Exception $e){

        }
    }

}